<?php
	class Admin_model extends CI_Model {
		public $table_name = "admin";
    	public function get_One( $name,$password){
            $array = array('username' => $name, 'password' => $password,);
    		$query = $this->db->where($array)->get($this->table_name);
	        return $query->row();
    	}
	}
?>